updateOrder = function(customerId, reservationsId, operationTime) {
    if (checkIsYesterdayCust()) {
        var treatmentUnit = $("#treatmentUnit").val();
        var ids = customerId + "," + reservationsId + "," + operationTime + "," + treatmentUnit;
        $.ajax({
            url: Feng.ctxPath + "/consultant/getDealStatus",
            type: "post",
            data: {
                "customerId": customerId,
                "reservationsId": reservationsId,
                "operationTime": operationTime
            },
            success: function(data) {
                if (data == 111) {
                    layer.close(index);
                    Feng.success("此单前台已结账，不能修改项目!");
                    if($("#detail").val()=='isArrive') {
                        location.href = Feng.ctxPath + '/consultantDetails/consultantToDetailByTab/' + customerId + '/3/0'
                    }else{
                        location.href = Feng.ctxPath + '/consultantDetails/consultantToDetailByTab/' + customerId + '/4/0'
                    }
                } else {
                    var index = layer.open({
                        type: 2,
                        title: '修改项目',
                        area: ['100%', '100%'],
                        fix: true,
                        maxmin: true,
                        content: Feng.ctxPath + '/consultant/updateDeal/' + ids,
                        success: function() {
                            window.parent.Consultant.table.refresh()
                        }
                    });
                    this.layerIndex = index
                }
            },
            error: function(data) {
                alert('没有权限，请联系系统管理员!')
            }
        })
    } else {
        alert("不允许操作昨天的数据,需要前台重咨,要计算门诊人数！");
        return false
    }
};
transactionRecord = function() {
    var customerId = $("#customerId").val();
    var index = layer.open({
        type: 2,
        title: '储值交易记录',
        area: ['90%', '90%'],
        fix: true,
        maxmin: true,
        content: Feng.ctxPath + '/customer/transactionRecord/' + customerId
    });
    this.layerIndex = index
};
changeRecord = function() {
    var customerId = $("#customerId").val();
    var index = layer.open({
        type: 2,
        title: '积分录入记录',
        area: ['90%', '90%'],
        fix: true,
        maxmin: true,
        content: Feng.ctxPath + '/customer/changeRecord/' + customerId
    });
    this.layerIndex = index
};
returnCashRecords = function() {
    var customerId = $("#customerId").val();
    var index = layer.open({
        type: 2,
        title: '返现变更记录',
        area: ['90%', '90%'],
        fix: true,
        maxmin: true,
        content: Feng.ctxPath + '/customer/returnCashRecord/' + customerId
    });
    this.layerIndex = index
};
//种植牙俱乐部交易记录
orthodonticsTransactionRecord = function () {
    var customerId = $("#customerId").val();
    var index = layer.open({
        type: 2,
        title: '种植牙俱乐部交易记录',
        area: ['90%', '90%'],
        fix: true,
        maxmin: true,
        content: Feng.ctxPath + '/customer/orthodonticsTransactionRecord/' + customerId
    });
    this.layerIndex = index;
};

var seleteisLarge = $('#isLargeValue').val();
if ($('#seleteisLarge').val() != "") {
    $("#isLarge option[value='" + seleteisLarge + "']").attr("selected", "selected")
};